.header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.scroll-hint {
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.card-wrapper {
    padding: 8vh 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    transform: translateX(-100px) rotate(-5deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wrapper.show {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    height: 80vh;
    max-height: 600px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
}

.card-header {
    background: none;
    border: none;
    padding: 2rem;
    flex-shrink: 0;
}

.profile-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.content {
    flex: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #1d1d1f, #434344);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .avatar {
    transform: scale(1.1) rotate(5deg);
}

.iframe-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background: #f8f9fa;
}

.iframe-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.embedded-site {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* 预览控制栏 */
.preview-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #666;
}

.preview-controls .url {
    flex: 1;
    margin: 0 1rem;
    padding: 0.25rem 0.75rem;
    background: #fff;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-frame {
    width: 100%;
    height: calc(100% - 36px);
    margin-top: 36px;
}

@media (max-width: 768px) {
    .card {
        height: auto;
    }

    .card-header {
        padding: 1.5rem;
    }

    .profile-section {
        flex-direction: column;
    }

    .profile-section .content {
        width: 100%;
    }

    .card-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .avatar {
        order: -1;
        margin-bottom: 1rem;
        align-self: center;
    }

    .iframe-wrapper {
        display: none;
    }
}